home *** CD-ROM | disk | FTP | other *** search
- on textMouse
- global gMidEssayStage, gCurrTextpic, gAcceptTextClix, gReadCheck
- if gAcceptTextClix = 1 then
- if the mouseH > gMidEssayStage then
- textNext()
- else
- if the frameLabel contains "Text" then
- if gReadCheck = 0 then
- textNext()
- else
- textPrev()
- end if
- else
- textPrev()
- end if
- end if
- if the puppet of sprite 7 = 1 then
- set the locV of sprite 7 to -1000
- updateStage()
- puppetSprite(7, 0)
- end if
- end if
- end
-
- on textNext
- global gCurrTextpic, gEssayPages, gEssayFirstLast
- if (gCurrTextpic + 1) <= gEssayPages then
- tacticalOff()
- set gCurrTextpic to gCurrTextpic + 1
- go(the frame + 1)
- else
- tacticalOff()
- set gCurrTextpic to 1
- if gEssayPages = 2 then
- go("TextJP")
- else
- go("TextJF")
- end if
- end if
- end
-
- on textPrev
- global gCurrTextpic, gEssayPages, gEssayFirstLast
- if (gCurrTextpic - 1) > 0 then
- tacticalOff()
- set gCurrTextpic to gCurrTextpic - 1
- go(the frame - 1)
- else
- set gCurrTextpic to gEssayPages
- if gEssayPages = 2 then
- go("LastJP")
- else
- go("LastJF")
- end if
- end if
- end
-
- on getEssayHyperText whichFile
- global gDirSep, gFileIOObj, gCDName
- tacticalOff()
- set p to gCDName & "TEXT" & gDirSep & whichFile
- if objectp(gFileIOObj) then
- gFileIOObj(mdispose)
- end if
- if the machineType = 256 then
- openXLib(the pathName & "xtras" & "\" & "Fileio.dll")
- else
- end if
- set gFileIOObj to FileIO(mnew, "read", p)
- set ret to gFileIOObj(mReadFile)
- gFileIOObj(mdispose)
- puppetSprite(7, 1)
- set the text of cast "EssayHyperField" to ret
- set the textFont of member "EssayHyperField" to "Geneva"
- set the textSize of member "EssayHyperField" to 12
- set the locV of sprite 7 to the top of sprite 16
- updateStage()
- if the machineType = 256 then
- closeXLib(the pathName & "xtras" & "\" & "Fileio.dll")
- else
- end if
- end
-